<template>
  <div class="form-box">
    <div class="form-title">法人代表意愿确认</div>
    <div class="text-bold-box">
      为确认开户为法人代表本人意愿，请上传法人代表手持【身份证】照片
    </div>
    <div class="form-content-box">
      <el-form
        :model="form"
        label-width="auto"
        style="max-width: 600px; margin: auto"
      >
        <el-form-item label="上传手持照片">
          <el-upload
            class="upload-demo"
            drag
            action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
            multiple
          >
            <el-icon class="el-icon--upload"><upload-filled /></el-icon>
            <div class="el-upload__text">
              将文件拖拽至此或者 <em>点击上传</em>
            </div>
            <template #tip>
              <div class="el-upload__tip">
                <div>1.请确保证脸部不被遮挡，证件上所有信息完整清晰</div>
                <div>2.支持PDF、JPG、JPEG、PNG格式</div>
                <div>3.文件大小不超过20M</div>
              </div>
            </template>
          </el-upload>
        </el-form-item>
        <el-form-item>
          <el-radio-group v-model="form.resource">
            <el-radio value="1" class="accept"
              >我确认以上信息填写准确无误，我已知悉且同意<span>《海淘国际用卡协议》</span>和<span
                >《海淘国际用户协议》</span
              ></el-radio
            >
          </el-radio-group>
        </el-form-item>
        <el-form-item>
          <div class="btn-box">
            <el-button type="primary" @click="next">上一步</el-button>
            <el-button>保存</el-button>
            <el-button type="primary" @click="next">下一步</el-button>
          </div>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
  <script setup>
import { reactive, defineEmits } from "vue";
const emit = defineEmits();

// do not use same name with ref
const form = reactive({
  name: "",
  region: "",
  date1: "",
  date2: "",
  delivery: false,
  type: [],
  resource: "",
  desc: "",
  num: 0,
});

const next = () => {
  console.log("submit!");
};
</script>
  <style lang="less" scoped>
.form-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .form-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 1.5rem;
    color: #000000;
    margin: 1.5rem 0;
  }
  .text-bold-box,
  .radio-title {
    margin: auto;
    margin-bottom: 1.5rem;
    width: 600px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 1rem;
    color: #000000;
    line-height: 1.75rem;
    text-align: left;
    font-style: normal;
  }
}
.upload-demo {
  width: 100%;
}
.btn-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
}
.el-upload__tip {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 0.875rem;
  color: #a6a6a6;
  line-height: 1.75rem;
  text-align: left;
  font-style: normal;
}
.accept {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 0.875rem;
  color: #000000;
  text-align: left;
  font-style: normal;
  span{
    color: #CCA46B;
  }
}
</style>